import React from "react";
import {loginApi} from "../../api/loginProcessing"
class index extends React.Component {
  constructor(props) {
    super(props);
    this.state = {};
  }
  onLoginClic=()=>{
    loginApi();
    this.props.history.push('/')
  };
  render(){
      return(<div>login<button onClick={this.onLoginClic}>登录</button></div>);
  }
}
export default index;
